interface Person {
    name: string;
    age: number;
    say: (text: string) => void
}

interface Student extends Person {
}

const s: Student = {
    name: 'asdf',
    age: 14,
    say: (text) => {
        console.log('hello', text)
    }
}
s.say('asdfasdf')